<template>
    <el-form ref="form" :model="form" label-width="80px" size="mini">
        <label >反馈信息</label><br></br>

        <el-form-item label="内容" prop="content">
            <el-input type="textarea" v-model="form.content" readonly></el-input>
        </el-form-item>
        
        <el-form-item label="图片"  ref="upload">
            <el-dialog :visible.sync="dialogVisible">
                <img width="100%"  alt="">
            </el-dialog>
        </el-form-item>
        
    </el-form>
</template>


<script>
import showFeedBackApi from '@/api/show'

export default {
    
    data() {
      return {
        form: {
          message: '',
        },
        BASE_API: process.env.BASE_API,
        id:''
      }
    },
    created(){
      debugger
       // 获取路由id值
      if (this.$route.query && this.$route.query.id) {
        this.id = this.$route.query.id
      }
      this.getFeedBack();
    },
    methods: {
      // 查询反馈信息
      getFeedBack() {
        showFeedBackApi.showFeedBack(this.id)
          .then(response=>{
            this.form.title=response.data.title
            this.form.content=response.data.content
            console.log("feedback:===>",response.data)
          })
        
      },
    }
}
</script>

<style>

</style>

